package controller

import (
	"github.com/gin-gonic/gin"
	"xs.jsjb/internal/app/menu/service"
)

type MenuController struct {
	service service.MenuService
}

func NewMenuController(s service.MenuService) *MenuController {
	return &MenuController{
		service: s,
	}
}

func (m *MenuController) RegisterHTTPRouter(r *gin.Engine) {
	g := r.Group("/api/menu")
	g.POST("/get", m.GetMenu)
}
